// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue';
import App from './App';
import router from './router';
import qs from 'qs';
Vue.prototype.$qs = qs;

import store from './Store/store.js';

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);

import { axios, api, histroy } from './Axios';

Vue.prototype.$axios = axios;
Vue.prototype.$api = api;
Vue.prototype.$axiosHistroy = histroy;

import VueAxios from 'vue-axios';
Vue.use(VueAxios, axios);

import VueDragResize from 'vue-drag-resize';
Vue.component('vue-drag-resize', VueDragResize);

import 'font-awesome/css/font-awesome.min.css'
import '@/assets/reset.css';
import '@/assets/style.css';

import Moment from 'moment';
import 'moment/locale/zh-cn'
Vue.prototype.$moment = Moment;

import Mockjs from 'mockjs';
Vue.prototype.$mock = Mockjs;

import _ from 'lodash';
Vue.prototype.$_ = _;

import VueClipboard from 'vue-clipboard2'
Vue.use(VueClipboard)

// import WSK from './assets/websocket.js';

Vue.config.productionTip = false;

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>',
  beforeCreate() {
    Vue.prototype.$bus = this;   // 安装全局事件总线
  },
  methods: {},
  mounted() { },

})
